package gemini.castor.ui.server.service.impl;

import gemini.basic.manager.DistributorManager;
import gemini.basic.model.Distributor;
import gemini.castor.ui.client.service.SponsorService;
import gemini.castor.ui.server.service.AbstractSingleService;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class SponsorServiceImpl extends
        AbstractSingleService<DistributorManager> implements
        SponsorService {

    @SuppressWarnings("unused")
	private final Log logger = LogFactory
            .getLog(SponsorServiceImpl.class);

	@Override
	public Distributor getSponsorByCode(String distributorCode) {
		Distributor result = duplicateExcludeFields(getServerManager().getSponsorByCode(distributorCode));
    	return result;
	}

}
